<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateSNSgroupChatTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('sns_group_chats', function(Blueprint $table){
			$table->increments('id');
			$table->integer('user_id');		
			$table->integer('group_id');	//圈子id
			$table->integer('easemob_id');	//环信群id
			$table->integer('type');		//消息类型
			$table->string('content', 200)->defaults('');	// 聊天内容
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
	}

}
